package com.myself.cloud.entity.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Package: com.myself.cloud.entity
 * @Author baijialiang
 * @CreateDate 2022-09-01
 * @describe 实体类
 */
@Data
@TableName("myself_user")
@ApiModel(value="MyselfUser对象", description="")
    public class MyselfUser implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
    * 主键
    */
    @ApiModelProperty(value = "主键")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;
    
    /**
    * 用户姓名
    */
    @ApiModelProperty(value = "用户姓名")
    private String userName;
    
    /**
    * 用户手机号
    */
    @ApiModelProperty(value = "用户手机号")
    private String userPhone;
    
    /**
    * 用户地址
    */
    @ApiModelProperty(value = "用户地址")
    private String userAddress;
    
    /**
    * 用户密码
    */
    @ApiModelProperty(value = "用户密码")
    private String userPassword;
    
    /**
    * 上次登录时间
    */
    @ApiModelProperty(value = "上次登录时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastLoginDate;
    
    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;
    
    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateDate;
    
    /**
    * 创建人
    */
    @ApiModelProperty(value = "创建人")
    private String creater;
    
    /**
    * 更新人
    */
    @ApiModelProperty(value = "更新人")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updater;
}